
/**
 * Write a description of class KundeUI here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class KundeUI
{
    // instance variables - replace the example below with your own
    private KundeCtrl kundeCtrl;
    private static KundeUI instance;

    public KundeUI()
    {
        kundeCtrl = new KundeCtrl();
    }

    public static KundeUI getInstance()
    {
        if(instance == null)
        {
            instance = new KundeUI();
        }
        return instance;
    }

    public void addKunde(String navn, String address, String tlf, int id, double rabat)
    {

    }

    public void setKunde(String navn, String address, String tlf, int id, double rabat)
    {

    }

    public boolean removeKunde(int id)
    {
        boolean successful = true;
        if(findKunde(id) == null)
        {
            successful = false;
        }
        else
        {
            kunder.remove(findKunde(id));
        }
        return successful;
    }

    public Kunde findKunde(int id)
    {
        return null;
    }

}
